/* styles.css */

/* Carousel Section */
.carousel-section {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    width: 50%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.9);
}

.carousel-control svg {
    width: 24px;
    height: 24px;
    fill: #003C88;
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.indicator.active {
    background: #fff;
}

/* News Section */
.news-section {
    padding: 40px 0;
    background: #f5f5f5;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.news-header-text span:first-child {
    font-size: 18px;
    color: #003C88;
    font-weight: bold;
}

.news-header-text .highlight {
    color: #ffb400;
}

.more-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.more-link:hover {
    color: #003C88;
}

.news-content {
    padding: 20px;
}

.featured-news {
    margin-bottom: 20px;
}

.featured-news img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
}

.featured-news h3 {
    margin: 10px 0 5px;
    font-size: 16px;
    line-height: 1.4;
    color: #333;
}

.date {
    color: #999;
    font-size: 12px;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    position: relative;
}

.news-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background-color: #003C88;
    border-radius: 50%;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    margin-right: 10px;
}

.news-list a:hover {
    color: #003C88;
}

/* Image Showcase */
.image-showcase {
    padding: 40px 0;
    background-image: url('../images/photobg.jpg');
    background-size: cover;
    background-position: center;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.showcase-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.showcase-item:hover {
    transform: translateY(-5px);
}

.showcase-item img {
    width: 100%;
    height: 216px;
    object-fit: cover;
    display: block;
}

/* Additional News Section */
.additional-news {
    padding: 40px 0;
    background: #f5f5f5;
}

.additional-news .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Special Topics */
.special-topics {
    padding: 40px 0;
    background: #f5f5f5;
}

.special-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.special-icon {
    margin-right: 10px;
}

.special-icon .icon {
    width: 24px;
    height: 24px;
    fill: #003C88;
}

.special-title span:first-child {
    font-size: 18px;
    color: #003C88;
    font-weight: bold;
}

.special-title .highlight {
    color: #ffb400;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.topic-item {
    display: block;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.topic-item:hover {
    transform: translateY(-5px);
}

.topic-item img {
    width: 100%;
    height: 104px;
    object-fit: cover;
    display: block;
}

/* Footer */
.footer {
    background-color: #003e90;
    color: white;
}

.footer-links {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.link-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.link-group span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.link-group a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 0 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.link-group a:last-child {
    border-right: none;
}

.link-group a:hover {
    text-decoration: underline;
}

.footer-bottom {
    padding: 20px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom .copyright {
    text-align: center;
    width: 100%;
}

.footer-bottom .copyright p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 992px) {
    .news-grid, .showcase-grid, .topics-grid, .additional-news .news-grid {
        grid-template-columns: 1fr;
    }

    .header-topbar .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }

    .navigation-menu .nav-list {
        flex-direction: column;
    }

    .carousel-section {
        height: 300px;
    }

    .carousel-slide {
        width: 100%;
    }

    .carousel-slides {
        width: 100%;
    }
}
